import { buildService, openBuildService } from '../../helper/service'

const openSettings = {
        getZHGDOrgTree: { //选择单位-组织树
            url: 'bulk/api/v3/screen/get_org_tree',
            // url: '/api/v3/screen/get_org_code_by_company_id_and_org_no',
            method: 'get'
        },
    }
    // 值类型为String或Object,String为url(method),Object同axios(config)参数支持相同,data和params只能为对象类型
const settings = {
    getOrgTree: { //选择单位-组织树
        url: '/api/v1/screen/get_org_tree',
        method: 'get'
    },
    //选择单位-项目列表
    getProList: {
        url: '/api/v1/screen/project_list',
        method: 'get'
    },
    targetCost: { //目标成本【对应数字块：dzcl-mbcb（大宗材料-目标成本）】
        url: '/api/v1/screen/target_cost',
        method: 'get'
    },
    bidding: { //招标采购【对应数字块：dzcl-zbcg（大宗材料-招标采购）】
        url: '/api/v1/screen/bidding',
        method: 'get'
    },
    siteIn: { //工地进场【对应数字块：dzcl-gdjc（大宗材料-工地进场）】
        url: '/api/v1/screen/site_in',
        method: 'get'
    },
    //市场行情
    marketSituation: {
        url: '/api/v1/screen/market_quotation',
        method: 'get'
    },
    projectCostRate: { //项目造价占比【对应数字块：dzcl-xmzjzb（大宗材料-项目造价占比）】
        url: '/api/v1/screen/project_cost_rate',
        method: 'get'
    },
    purSourceDistrib: { //采购来源分布【对应数字块：dzcl-cglyfb（大宗材料-采购来源分布）】
        url: '/api/v1/screen/purchase_source_distribution',
        method: 'get'
    },
    costSettlement: { //费用结算【对应数字块：dzcl-fyjs（大宗材料-费用结算）】
        url: '/api/v1/screen/cost_settlement',
        method: 'get'
    },
    abnormalProject: { //异常项目情况【对应数字块：dzcl-ycxmqk（大宗材料-异常项目情况）】
        url: '/api/v1/screen/abnormal_project',
        method: 'get'
    },
    earlywarn: { //预警消息【对应数字块：dzcl-yjxx（大宗材料-预警消息）】
        url: '/api/v1/screen/early_warning',
        method: 'get'
    },
    getIndexDataList: { //指标
        url: '/api/v1/screen/screen_index_data/get_index_data_list',
        method: 'post'
    },
    sourceAnalysis: { //来源分析弹窗
        url: '/api/v1/screen/source_analysis',
        method: 'get'
    },
    // 每月动态
    getMonthDynamics: {
        url: '/api/v1/screen/monthly_dynamics',
        method: 'get'
    },
    // 市场行情_k线图种类、规格、材质
    getQuotationIndex: {
        url: '/api/v1/screen/market_quotation_index_info',
        method: 'get'
    },
    // 市场行情_k线图
    getQuotationKLine: {
        url: '/api/v1/screen/market_quotation_k_line',
        method: 'get'
    },
    // 市场行情_k线图种类、规格、材质，一层一层显示
    getQuotaIndex: {
        url: '/api/v1/screen/market_quotation_index_info_list',
        method: 'get'
    }
}
export default {...buildService(openSettings), ...openBuildService(settings) };